home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 04 Pathfinding and Movement / 05 Hancock / Goal_GoThroughDoor.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-08-19  |  378 b   |  21 lines

  1.  
  2.  
  3. class Goal_GoThroughDoor : public Goal, public GoalStack
  4. {
  5. public:
  6.     Goal_GoThroughDoor( AI* pAI, const PathLink *pathlink);
  7.  
  8.     virtual ~Goal_GoThroughDoor();
  9.  
  10.     // Update the goal
  11.     virtual void Update( float secs_elapsed );
  12.  
  13.     virtual bool ReplanSubgoals();
  14.  
  15. protected:
  16.     const PathLink *link;
  17.     const Door *door;
  18.     bool active; //has this goal been active?
  19. };
  20.  
  21.